package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.base.BaseBom;
import org.apache.ibatis.annotations.Select;

/**
 * 物料清单Mapper接口
 *
 * @author ruoyi
 * @date 2023-02-07
 */
public interface BaseBomMapper extends BaseMapper<BaseBom> {

    @Select("select t1.* from set_model t " +
            "inner join base_bom t1 on t.model_code=t1.bom_code where t.id=#{modelId}")
    BaseBom getBom(Long modelId);
}
